#include "searcher.hpp"
const string rawPath = "./data/raw_html/raw.txt";
int main()
{
    //for test
    ns_searcher::Searcher s;
    s.InitSearcher(rawPath);
    string input;
    string jsonstr;
    char buff[1024];
    while (1)
    {
        cout << "Please Enter#";
        fgets(buff, sizeof(buff) - 1, stdin);
        // cin >> input;
        cout<<buff<<endl;
        s.Search(buff, &jsonstr);
        cout << jsonstr << endl;
    }
    return 0;
}